#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-12-05 17:45
# @Author  : 少爷

if __name__ == '__main__':
    # 方法一
    a = [1, 4, 6, 9, 13, 16, 19, 28, 40, 100, 0]
    print 'original list is:'
    for i in range(len(a)):
        print a[i]
    number = int(raw_input("insert a new number:\n"))
    end = a[9]
    if number > end:
        a[10] = number
    else:
        for i in range(10):
            if a[i] > number:
                temp1 = a[i]
                a[i] = number
                for j in range(i + 1,11):
                    temp2 = a[j]
                    a[j] = temp1
                    temp1 = temp2
                break
    for i in range(11):
        print a[i]
